@echo start to build the TRIM arm library

del /Q obj\*.o 
del /Q JpegC.a

"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsFrame.o -c  -I..\jpeg\inc ..\jpeg\src\nmsFrame.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsHuffman.o -c  -I..\jpeg\inc ..\jpeg\src\nmsHuffman.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsJepgCompress.o -c  -I..\jpeg\inc ..\jpeg\src\nmsJepgCompress.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsJpeg.o -c  -I..\jpeg\inc ..\jpeg\src\nmsJpeg.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsJpegDct.o -c  -I..\jpeg\inc ..\jpeg\src\nmsJpegDct.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsJpegMcuReader.o -c  -I..\jpeg\inc ..\jpeg\src\nmsJpegMcuReader.c
"C:\Program Files\ARM\ADSv1_2\Bin\tcc" -o obj\nmsJpegUtil.o -c  -I..\jpeg\inc ..\jpeg\src\nmsJpegUtil.c

"C:\Program Files\ARM\ADSv1_2\Bin\armar" -r JpegC.a obj\*.o

"C:\Program Files\ARM\ADSv1_2\Bin\armar" -zt JpegC.a > codeSize.txt

pause

@echo Build the Mtk library End
